-- GENERATED SPELL FOR [Obsidian Nullifier] --


function spell0_15312(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(40504,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15312', 520, 1)
end

function spell1_15312(pUnit, Event) --@Nullify,Self--
pUnit:FullCastSpellOnTarget(26552,pUnit)
pUnit:RegisterEvent('Sorts_15312', 8301, 1)
end

function Sorts_15312(pUnit, Event)
local choix_sorts_15312 = math.random(0, 1)
if choix_sorts_15312 == 0 then
pUnit:RegisterEvent('spell0_15312', 1, 1)
end
if choix_sorts_15312 == 1 then
pUnit:RegisterEvent('spell1_15312', 1, 1)
end
end

function mob15312_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15312', math.random(1500, 3000), 1)
end

function mob15312_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15312_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15312_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15312, 1, 'mob15312_Action')
RegisterUnitEvent(15312, 2, 'mob15312_Leave')
RegisterUnitEvent(15312, 3, 'mob15312_Kill')
RegisterUnitEvent(15312, 4, 'mob15312_Die')
